<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>nav导航插件-Jquery插件库-林氏智造</title>
		<link href="css/reset.css" rel="stylesheet" />
		<link href="css/style.css" rel="stylesheet" />
		<link href="css/ui.css" rel="stylesheet" />
		<link href="css/shCoreDefault.css" rel="stylesheet" />
		<script type="text/javascript" src="js/jquery-1.10.0.min.js"></script>
		<script type="text/javascript" src="js/shCore.js"></script>
		<script type="text/javascript" src="js/shBrushCSharp.js"></script>
		<script type="text/javascript">SyntaxHighlighter.all();</script>
		<script type="text/javascript" src="js/lin_nav.1.0.js"></script>
		<script type="text/javascript">
			$(function(){
				$('#demo1').lin_nav();
				$("#demo2").lin_nav({clickEvent:true});
			});
		</script>
	</head>
	<body id="main">
		
		<div class="slidebar">
			<a href="http://www.0773linji.com" title="林氏智造" class="logo">林氏智造</a>
			<div class="slidebar_title">Jquery<span class="ver">插件库</span></div>
			<iframe src="../menu.html" frameborder="0"></iframe>
		</div>
		
		<div class="content">
			
			<div class="caption"><h2>nav导航插件</h2><span class="file">Define in : lin_nav.1.0.js</span></div>
			
			<div class="mod_desc">
        			<p>nav导航效果也是个满基础的jquery入门插件，通过监听各元素的事件改变其状态然后通过siblings遍历其兄弟节点改变成相反属性。</p>
    			</div>
    			
    			<h3 class="title_lv2">
    				$("<span>target</span>").lin_nav([ <em>options</em> ]);
    			</h3>
    			
    			<dl class="deps">
        			<dt>依赖</dt>
        			<dd>JS : jquery-1.10.0.min.js</dd>
        			<dd>浏览器 : ie7+</dd>
    			</dl>
    			
    			<div class="params_box">
				<h5>参数</h5>
				<ul class="params_list">
					<li>
						<dl>
							<dt>target</dt>
							<dd>String</dd>
						</dl>
						<div class="params_desc">
							<span class="type required">必需</span>
							<p>target DOM元素ID或者DOM元素class,对匹配元素进行插件绑定。</p>
						</div>
					</li>
					<li>
						<dl>
							<dt>options</dt>
							<dd>Object</dd>
						</dl>
						<div class="params_desc">
							<span class="type optional">可选</span>
							<p>多选形式的可配置参数。</p>
						</div>
					</li>
				</ul>
			</div>
			
			<div class="article_box">
        			<p>下表列出了options参数介绍。</p>
    			</div>
    			
    			<table class="props_tb">
        <colgroup>
            <col style="width:130px">
            <col style="width:100px">
            <col style="width:70px">
            <col style="width:370px">
        </colgroup>
        <thead>
            <tr class="even">
                <th>参数</th>
                <th>数据类型</th>
                <th>默认值</th>
                <th>说明</th>
            </tr>
        </thead>
        <tbody>
            <tr>
                <td><b class="name">childObj</b></td>
                <td><span class="type">String</span></td>
                <td><span class="normal">.lin_child</span></td>
                <td class="t_l">
                    <p>子元素对象</p>
                </td>
            </tr>
            <tr class="even">
                <td><b class="name">parentObj</b></td>
                <td><span class="type">String</span></td>
                <td><span class="normal">.lin_parent</span></td>
                <td class="t_l">
                    <p>父元素对象</p>
                </td>
            </tr>
            <tr>
                <td><b class="name">currentClass</b></td>
                <td><span class="type">String</span></td>
                <td><span class="normal">current</span></td>
                <td class="t_l">
                    <p>当前样式</p>
                </td>
            </tr>
            <tr class="even">
                <td><b class="name">clickEvent</b></td>
                <td><span class="type">Boolean</span></td>
                <td><span class="normal">false</span></td>
                <td class="t_l">
                    <p>单击事件驱动</p>
                </td>
            </tr>
        </tbody>
    </table>
    
    
    <div class="example_box">
        <h5>例子一：基本调用下拉</h5>
		<p>CSS</p>    
        <div class="code_box">
        		<pre class="brush: csharp;">.lin_navList{height:32px; background-color:#000000; width:550px; margin:0px auto;}
.lin_navList li.lin_parent{float:left; height:32px; line-height:33px;position:relative; margin-right:10px; display:inline; width:55px; z-index:2;}
.lin_navList li.lin_parent a.parentLink{color:#FFF; display:block; padding:0px 10px; height:32px; text-align:center;}
.lin_navList li.current a.parentLink{ background-color:#FF5500; color:#FFF;}
.lin_navList .lin_child{ background-color:#FF5500;position:absolute; top:32px; left:0px; width:180px; display:none;}
.lin_navList .childList li{float:left; margin-left:10px; display:inline;}
.lin_navList .childList li a{color:#FFFFFF;}
.lin_navList .childList li a:hover{text-decoration:underline;}</pre>
        </div>        
		<p>JS</p>    
        <div class="code_box">
        		<pre class="brush: csharp;">$('#demo1').lin_nav();</pre>
        </div>        
        
        <div class="demo_box">
            
            <div class="nav" id="demo1">
             	<ul class="lin_navList">
             		<li class="lin_parent">
                		<a href="javascript:;" title="男士" class="parentLink">男士</a>
                    		<div class="lin_child">
                    			<ul class="childList">
                        			<li><a href="javascript:;" title="衬衣">衬衣</a></li>
                            		<li><a href="javascript:;" title="外套">外套</a></li>
                            		<li><a href="javascript:;" title="内衣">内衣</a></li>
                            		<li><a href="javascript:;" title="短袖">短袖</a></li>
                            		<li><a href="javascript:;" title="裤子">裤子</a></li>
                        		</ul>
                    		</div>
                	</li>
                	<li class="lin_parent">
                		<a href="javascript:;" title="女士" class="parentLink">女士</a>
                    		<div class="lin_child">
                    			<ul class="childList">
                        			<li><a href="javascript:;" title="衬衣">衬衣</a></li>
                            		<li><a href="javascript:;" title="外套">外套</a></li>
                            		<li><a href="javascript:;" title="内衣">内衣</a></li>
                            		<li><a href="javascript:;" title="短袖">短袖</a></li>
                            		<li><a href="javascript:;" title="裤子">裤子</a></li>
                        		</ul>
                    		</div>                
                	</li>
                	<li class="lin_parent">
                		<a href="javascript:;" title="小孩" class="parentLink">小孩</a>
                    		<div class="lin_child">
                    			<ul class="childList">
                        			<li><a href="javascript:;" title="衬衣">衬衣</a></li>
                            		<li><a href="javascript:;" title="外套">外套</a></li>
                            		<li><a href="javascript:;" title="内衣">内衣</a></li>
                            		<li><a href="javascript:;" title="短袖">短袖</a></li>
                            		<li><a href="javascript:;" title="裤子">裤子</a></li>
                        		</ul>
                    		</div>                
                	</li>
                	<li class="lin_parent">
                		<a href="javascript:;" title="妇女" class="parentLink">妇女</a>
                    		<div class="lin_child">
                    			<ul class="childList">
                        			<li><a href="javascript:;" title="衬衣">衬衣</a></li>
                            		<li><a href="javascript:;" title="外套">外套</a></li>
                            		<li><a href="javascript:;" title="内衣">内衣</a></li>
                            		<li><a href="javascript:;" title="短袖">短袖</a></li>
                            		<li><a href="javascript:;" title="裤子">裤子</a></li>
                        		</ul>
                    		</div>                
                	</li>                                        
             	</ul>
             </div>
            
        </div>
        
    </div>
    
    
    <div class="example_box">
        <h5>例子二：基本调用右拉</h5>
		<p>CSS</p>    
        <div class="code_box">
        		<pre class="brush: csharp;">.lin_navList2{background:#000; width:50px;height:132px;}
.lin_navList2 li.lin_parent{height:33px; line-height:33px;position:relative; float:left; clear:both; width:50px;}
.lin_navList2 li.lin_parent a.parentLink{color:#FFF; display:block; padding:0px 10px; height:33px; text-align:center;line-height:33px;}
.lin_navList2 li.current a.parentLink{ background-color:#FF5500; color:#FFF;}
.lin_navList2 .lin_child{ background-color:#FF5500;display:none; position:absolute; left:50px; top:0px;}
.lin_navList2 .childList li{text-align:center;height:33px; line-height:33px; padding-left:10px; width:40px;}
.lin_navList2 .childList li a{color:#FFFFFF;}
.lin_navList2 .childList li a:hover{text-decoration:underline;}</pre>
        </div>        
		<p>JS</p>    
        <div class="code_box">
        		<pre class="brush: csharp;">$("#demo2").lin_nav({clickEvent:true});</pre>
        </div>        
        
        <div class="demo_box">
            
            <div class="nav" id="demo2">
             	<ul class="lin_navList2">
             		<li class="lin_parent">
                		<a href="javascript:;" title="男士" class="parentLink">男士</a>
                    		<div class="lin_child">
                    			<ul class="childList">
                        			<li><a href="javascript:;" title="衬衣">衬衣</a></li>
                            		<li><a href="javascript:;" title="外套">外套</a></li>
                        		</ul>
                    		</div>
                	</li>
                	<li class="lin_parent">
                		<a href="javascript:;" title="女士" class="parentLink">女士</a>
                    		<div class="lin_child">
                    			<ul class="childList">
                        			<li><a href="javascript:;" title="衬衣">衬衣</a></li>
                            		<li><a href="javascript:;" title="外套">外套</a></li>
                            		<li><a href="javascript:;" title="内衣">内衣</a></li>
                        		</ul>
                    		</div>                
                	</li>
                	<li class="lin_parent">
                		<a href="javascript:;" title="小孩" class="parentLink">小孩</a>
                    		<div class="lin_child">
                    			<ul class="childList">
                        			<li><a href="javascript:;" title="衬衣">衬衣</a></li>
                            		<li><a href="javascript:;" title="外套">外套</a></li>
                        		</ul>
                    		</div>                
                	</li>
                	<li class="lin_parent">
                		<a href="javascript:;" title="妇女" class="parentLink">妇女</a>
                    		<div class="lin_child">
                    			<ul class="childList">
                        			<li><a href="javascript:;" title="衬衣">衬衣</a></li>
                        		</ul>
                    		</div>                
                	</li>                                        
             	</ul>
              </div> 
            
        </div>
        
    </div>
    
    
    <div class="download">
        <h3>立即下载</h3>
        <div class="download_box">
            <a href="#" target="_blank" class="btn_download btn_download_wide">
                <span class="icon_box"><s class="icon_download"></s></span>
                <span class="title">lin_nav</span>
                <span class="version">version : 1.0</span>
            </a>
        </div>
    </div>
    
    <div class="download">
        <h3>联系我</h3>
        <div class="download_box">
           <a target="_blank" href="http://wpa.qq.com/msgrd?v=3&uin=317365887&site=qq&menu=yes"><img border="0" src="http://wpa.qq.com/pa?p=2:317365887:53" alt="请注明通过林氏智造发现此QQ" title="请注明通过林氏智造发现此QQ"/></a>
        </div>
    </div>
			
			
		</div>
		
	</body>
</html>
